package com.hckjsec.cloud.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hckjsec.common.annotation.Excel;
import com.hckjsec.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 小程序用户参数配置对象 applets_public_param
 * 
 * @author cyt
 * @date 2021-08-19
 */
public class AppletsPublicParam implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long paramId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 参数类型 */
    @Excel(name = "参数类型")
    private String paramType;

    /** URL路径 */
    @Excel(name = "URL路径")
    private String url;

    /** 姓名 */
    @Excel(name = "姓名")
    private String username;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** xid前端用 */
    @Excel(name = "xid前端用")
    private String xid;

    /** 所属类别 */
    @Excel(name = "所属类别")
    private String category;

    /** 操作人 */
    @Excel(name = "操作人")
    private Long operator;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operatortime;

    private String[] categorya;

    public AppletsPublicParam() {
    }

    public AppletsPublicParam(Long deptId, String paramType) {
        this.deptId = deptId;
        this.paramType = paramType;
    }

    public void setParamId(Long paramId)
    {
        this.paramId = paramId;
    }

    public Long getParamId() 
    {
        return paramId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setParamType(String paramType) 
    {
        this.paramType = paramType;
    }

    public String getParamType() 
    {
        return paramType;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setXid(String xid) 
    {
        this.xid = xid;
    }

    public String getXid() 
    {
        return xid;
    }
    public void setOperator(Long operator) 
    {
        this.operator = operator;
    }

    public Long getOperator() 
    {
        return operator;
    }
    public void setOperatortime(Date operatortime) 
    {
        this.operatortime = operatortime;
    }

    public Date getOperatortime() 
    {
        return operatortime;
    }

    public void setCategory(String category)
    {
        this.category = category;
    }

    public String getCategory()
    {
        return category;
    }

    public String[] getCategorya() {
        return categorya;
    }

    public void setCategorya(String[] categorya) {
        this.categorya = categorya;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("paramId", getParamId())
            .append("deptId", getDeptId())
            .append("paramType", getParamType())
            .append("url", getUrl())
            .append("username", getUsername())
            .append("phone", getPhone())
            .append("sort", getSort())
            .append("state", getState())
            .append("xid", getXid())
            .append("category", getCategory())
            .append("operator", getOperator())
            .append("operatortime", getOperatortime())
            .toString();
    }
}
